package cn.wolfcode.luowowo.comment.repository;

import cn.wolfcode.luowowo.comment.domain.ViewpointRefComment;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ViewpointRefCommentMongoRepository extends MongoRepository<ViewpointRefComment, String> {
    /**
     * 使用景点评论id查询 回复评论信息
     * @param viewpointCommentId
     * @return
     */
    List<ViewpointRefComment> findByViewpointCommentId(Long viewpointCommentId);


    /**
     * 使用评论的ObjectId查询评论内容
     * @param id
     * @return
     */
   // ViewpointRefComment findById(String id);
}
